//
//  XTXConstant.h
//  XZ_WeChat
//
//  Created by 郭现壮 on 16/9/27.
//  Copyright © 2016年 gxz. All rights reserved.
//

#ifndef XTXConstant_h
#define XTXConstant_h


#define kDevice_Is_iPhoneX ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(1125, 2436), [[UIScreen mainScreen] currentMode].size) : NO)

#define kStatusBarHeight (kDevice_Is_iPhoneX==YES ? 44 : 20)

#define APP_Frame_Height   [[UIScreen mainScreen] bounds].size.height

#define App_Frame_Width    [[UIScreen mainScreen] bounds].size.width
#define iOS_frame_width(w) (w/750.0)*[[UIScreen mainScreen] bounds].size.width
#define iOS_frame_height(h) (h/1334.0)*[[UIScreen mainScreen] bounds].size.height

#define iOS_frame_width1(w) (w/750.0)*(725.0/750.0)*[[UIScreen mainScreen] bounds].size.width
#define iOS_frame_height1(h) (h/1334.0)*(1200.0/1334.0)*[[UIScreen mainScreen] bounds].size.height

#define iOS_W(w) ([[UIDevice currentDevice].model isEqualToString:@"iPad"]?iOS_frame_width1(w):iOS_frame_width(w))

#define iOS_H(h) ([[UIDevice currentDevice].model isEqualToString:@"iPad"]?iOS_frame_height1(h):iOS_frame_height(h))
#define ALERT(msg)  [[[UIAlertView alloc]initWithTitle:@"提示" message:msg delegate:nil \
cancelButtonTitle:@"确定" otherButtonTitles:nil,nil] show]

#define App_Delegate ((AppDelegate*)[[UIApplication sharedApplication]delegate])

#define App_RootCtr  [UIApplication sharedApplication].keyWindow.rootViewController

#define WEAKSELF __weak typeof(self) weakSelf = self;

#define XZColor(r, g, b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1.0]

#define IColor(r, g, b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1.0]

#define XZRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16)) / 255.0 green:((float)((rgbValue & 0xFF00) >> 8)) / 255.0 blue:((float)(rgbValue & 0xFF)) / 255.0 alpha:1.0]

#define ICRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16)) / 255.0 green:((float)((rgbValue & 0xFF00) >> 8)) / 255.0 blue:((float)(rgbValue & 0xFF)) / 255.0 alpha:1.0]

#define BACKGROUNDCOLOR   XZRGB(0xf4f1f1)
#define SEARCHBACKGROUNDCOLOR  [UIColor colorWithRed:(110.0)/255.0 green:(110.0)/255.0 blue:(110.0)/255.0 alpha:0.4]


#define EMOJI_CODE_TO_SYMBOL(x) ((((0x808080F0 | (x & 0x3F000) >> 4) | (x & 0xFC0) << 10) | (x & 0x1C0000) << 18) | (x & 0x3F) << 24);


#define ICFont(FONTSIZE)  [UIFont systemFontOfSize:(FONTSIZE)]
#define ICBOLDFont(FONTSIZE)  [UIFont boldSystemFontOfSize:(FONTSIZE)]
#define ICSEARCHCANCELCOLOR    [UIColor orangeColor]
#define SEARCH_HEIGHT_COLOR   ICRGB(0x027996)

#define NE_BACKGROUND_COLOR ICRGB(0x027996)

#define kDiscvoerVideoPath @"Download/Video"  // video子路径
#define kChatVideoPath @"Chat/Video"  // video子路径
#define kChatRecoderPath @"Chat/Recoder"
#define kVideoType @".mp4"        // video类型
#define kRecoderType @".wav"
#define kRecodAmrType @".amr"

#define shifouguanzhudewangluojiekou @"/m/userapiv2/followUser"//添加关注 与 取消关注
#define chakanshifouguanzhucirendewangluojiekou @"/m/userapiv2/getFollow"//查看是否关注此人
#define yonghujiebaodewangluojiekou @"/m/userAPi/userReport"//用户举报
#define zanshiguanzhulistInterface @"/m/userAPi/listUserFollow"//展示关注列表
#define chakanxitongxiaoxidewangluoqingqiu @"/m/userAPiV2/listSystemMessages"//查看系统消息
#define xiugaiyonghudegerenxinxidewangluoqingqiu @"/m/userApi/updateUserInfo"//修改用户信息
#define yijianfankuidewangluojiekou @"/m/userapi/giveopinion"//提交意见
#define xiugaiyongyuyuyintiaodewangluojiekou @"/m/userapiv2/updateUserVoice"//修改用户语音条
#define getUserById @"/m/userApiv2/getUserById"//根据id查询用户信息
#define jiaruheimingdandewangluojiekou @"/m/userApi/addBlack"//加入黑名单
#define tuichuDengluJiekou @"/m/userApi/quitLogin"
#define shoujidengludewangluojiekou @"/m/loginApi/login"
#define huoqushoujiyanzhengmadewangluojiekou @"/m/loginApi/getPhoneCode"
#define huoqugengduoyonghuxinxidewangluojiekou @"/m/loginApi/getDefaultUserinfoBySex"
#define denglutouxiangshangchuangdewangluojiekou @"/m/loginapi/insertImage"
#define charutupiandewangluojiekou @"/m/UserApiV2/insertImage"
#define charushengyindewangluojiekou @"/m/UserApiV2/insertVoice"
#define huoquyonghushengyinlistdewangluojiekou @"/m/UserApiV2/listUserVoices"
#define charushipingdewangluojiekou @"/m/UserApiV2/insertVideo"
#define shengyinliebiaodewangluojiekou @"/m/UserApiV2/listVoices"
#define tianjiayonghutouxiangdewangluojiekou @"/m/userApi/addUserImage"
#define shanchutupiandewangluojiekou @"/m/userApi/delUserImage"
#define yonghutupiandewangluoqingqiu @"/m/userapiv2/listUserImages"
#define xiuchangdewangluojiekou @"/m/userApi/addShowPlace"
#define yichuxiuchangdewangluojiekou @"/m/userApi/removeShowPlace"
#define xiuchnagliebiaodewangluojiekou @"/m/userApiV2/listUserShowPlace"
#define pengyouxiangcedewangluoJiekou @"/m/userapiv2/listFriendShowPlace"
#define listShowPlacedewangluojiekou @"/m/userApiV2/listShowPlace"
#define xiugaigetuiCiddewangluojiekou @"/m/userapiv2/updateUserGeTuiCid"
#define SubordinateListdewangluojiekou @"/m/userapi/getUserSubordinateList"
#define applyGoddessdewangluojiekou @"/m/userApi/applyGoddess"
#define refreshTimedewangluojiekou @"/m/userApi/refreshTime"
#define callinfodewangluojiekou @"/m/userapiv2/getUserCallInfo"
#define jianchaxiangqingpushmsgdewangluojiekou @"/m/userApi/clickDetailPushMsg"
#define getNewUserdewangluojiekou @"/m/userapiv2/getNewUser"
#define getUserStatistics @"/m/userapiv2/getUserStatistics"
#define getImV2dewangluojiekou @"/m/userapiv2/getImV2"
#define listRecommendDatadewangluojiekou @"/m/userapiV2/listRecommendData"
#define listIndexDatadewangluojiekou @"/m/userApiV2/listIndexData"
#define insertMsgdewangluojiekou @"/m/UserApiV2/insertMessage"
#define listMessageListsdewangluojiekou @"/m/UserApiV2/listMessageLists"
#define listMessagesdewangluojiekou @"/m/UserApiV2/listMessages"
#define deleteMessageListdewangluojiekou @"/m/UserApiV2/deleteMessageList"
#define deleteSystemMessagedewangluojiekou @"/m/userapiv2/deleteSystemMessage"
#define listInteractionMessagesdewangluojiekou @"/m/userapiv2/listInteractionMessagesV2"
#define deleteInteractionMessagedewangluojiekou @"/m/userapiv2/deleteInteractionMessage"
#define closeUserAccount @"/m/UserApiV2/closeUserAccount"

#endif /* XTXConstant_h */
